// 包含n个ruducer函数的模块
import {
    USER_DATA,
    REMOVE
} from './action-types'

export function transfromData(state = {}, action) {
    let temp = state
    switch (action.type) {
        case USER_DATA:
            temp = action.data
            return temp
        case REMOVE:
            temp = {}
            return temp
        default:
            return state;
    }
}